package com.sprouting.ops.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sprouting.ops.model.OpsSiteFault;
import com.sprouting.ops.model.qo.OpsSiteFaultQo;
import com.sprouting.ops.model.vo.OpsSiteFaultVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (现场故障上报)表数据库访问层
 *
 * @author longx
 * @since 2023-11-20 17:56:36
 */
public interface OpsSiteFaultDao extends BaseMapper<OpsSiteFault> {

    /**
     * 分页查询
     * @param page 分页参数
     * @param query 查询参数
     * @return
     */
    Page<OpsSiteFaultVo> getOpsSiteFaultPageList(Page page, @Param("query") OpsSiteFaultQo query);

    /**
     * 根据应用获取故障总数
     * @param appDeployIdList 部署应用ID
     * @return
     */
    long getCountByAppDeployId(List<String> appDeployIdList);

}

